package script

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
)

type FlagScriptPathBuilder struct {
	yscmd.FlagBuilderCore
}

func (b *FlagScriptPathBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx, group...)
	b.F.ConfigNodeName = ""
	b.F.Short = "s"
	b.F.Long = "script-path"
	b.F.DefaultValue = "./scripts"
	b.F.Description = `
        脚本存放的路径`
}

func FlagScriptPath(ctx context.Context) *yscmd.Flag {
	b := FlagScriptPathBuilder{}
	b.Init(ctx)
	return b.Flag()
}
